<?php
return [
//    'homeUrl' => '/',
    'components' => [
        'mailer' => [
                    'class' => 'yii\swiftmailer\Mailer',
                     'transport' => [
                     'class' => 'Swift_SmtpTransport',
                     'host' => 'smtp.mxhichina.com',
                     'username' => 'service@njfae.cn',
                      'password' => 'njfae025++--',
                     'port' => '25',
                      'encryption' => 'tls',
                       ],
                      'messageConfig' => [
                      'charset' => 'UTF-8',
                     'from' => ['service@njfae.cn' => 'service']
                        ],
                     ],
        'request' => [
            'baseUrl' => '',
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
        ],
	'ftp' => [
            'class' => '\gftp\FtpComponent',
            'driverOptions' =>  [
                'class' => \gftp\FtpProtocol::valueOf('sftp')->driver,
                'user' => 'ktnjfae',
                'pass' =>'ktnjfae./b425088d',
                'host' => 'sftp.kaitongamc.com',
                'port' => 10080,
                'timeout' => 120,
            ]
        ],
        'jdftp' => [
            'class' => '\gftp\FtpComponent',
            'driverOptions' =>  [
'class' => \gftp\FtpProtocol::valueOf('sftp')->driver,
                'user' => 'jdnjjys',
                "publicKeyFile" => "/home/www-data/id_rsa.pub",  // 公钥的存储地址
                'privateKeyFile' => '/home/www-data/id_rsa',
                'host' => '211.151.8.93',
                'port' => 20000,
                'timeout' => 120,

            ]
        ]

    ],
        //     configuration adjustments for 'dev' environment
//        'bootstrap'=>['debug','gii'],
//      'modules'=>['debug'=>'yii\debug\Module','gii'=>'yii\gii\Module']
];
